package com.lesama.array2;

public class ArrayDemo1 {
    public static void main(String[] args) {
        int[][] arr1 = {
                {1, 2, 3},
                {4, 5, 6}
        };
        System.out.println(arr1); // [[I@776ec8df -- 二维数组
        System.out.println(arr1[0]); // [I@4eec7777 -- 一维数组
        System.out.println(arr1[0][0]); // 1 -- 元素
        int[][] arr2 = new int[][]{{1, 2, 3}, {4, 5, 6}};
        System.out.println(arr2);
        System.out.println(arr2[0]);
        System.out.println(arr2[0][0]);
    }
}
